﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace _0712518_0712510_LTGame
{
    public enum State
    {
        STANDING,
        JUMPING,
        FALLING,
        FLOATING,
        RUNNING,
        LANDING,
    }
    public class Sprite
    {
        public Vector2 start_position;
        public Point size;
        public Point position2draw;
        public Point conclision;
        public Point conclisionSize;
        public Point healthHitbox;
        public Point healthHitboxSize;
        public Point actackHitbox;
        public Point actackHitboxSize;

        public void setSprite(Sprite obj)
        {
            start_position = obj.start_position;
            size = obj.size;
            position2draw = obj.position2draw;
            conclision = obj.conclision;
            conclisionSize = obj.conclisionSize;
            healthHitbox = obj.healthHitbox;
            healthHitboxSize = obj.actackHitboxSize;
            actackHitbox = obj.actackHitbox;
            actackHitboxSize = obj.actackHitboxSize;
        }
    }
    public class Animation
    {
        public Sprite[] skill;
        public string name;
        public bool canUse;
        public int spriteCount;
        public bool isActive;
        public int currentFrame;
        public int startLoop;
        public int endLoop;
        public Texture2D m_Texture2D;
        public int timePerFrame;
        public int timeSinceLastFrame;
        public int canCancel;
        public string[] nameSkill;
        public int frameCancel;
    }
}
